#include<bits/stdc++.h>
using namespace std;
int T,n,m,l,v;
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    for(int i=0;i<T;i++){
        cin>>n>>m>>l>>v;
        for(int i=0;i<n;i++){
            int x,y,z;
            cin>>x>>y>>z;
        }
        cout<<n<<" "<<"0"<<endl;
    }
    return 0;
}
